﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="bai1.aspx.cs" Inherits="bai1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 50%;
        }
        .style2
        {}
        .style3
        {
            width: 50%;
        }
        .style4
        {
            width: 174px;
        }
        .style5
        {
            width: 173px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" style="clip: rect(0px, auto, 0px, auto)">
    <div>
    
        <table align="center" class="style1">
            <tr>
                <td align="center" colspan="2" style="font-weight: bold; font-size: 30px;">
                    Tính ba số</td>
            </tr>
            <tr>
                <td align="right" class="style5">
                    nhap so thu nhat :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txt_1" runat="server" Width="201px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="style5">
                    nhap so thu hai :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txt_2" runat="server" Width="202px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="style5">
                    nhap so thu ba :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txt_3" runat="server" Width="203px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="style5">
                    chon phep tinh :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:Button ID="btn_cong" runat="server" onclick="btn_cong_Click" Text="+" />
&nbsp;
                    <asp:Button ID="btn_nhan" runat="server" onclick="btn_nhan_Click" Text="*" />
&nbsp;
                    <asp:Button ID="btn_xoa" runat="server" onclick="btn_xoa_Click" Text="reset" />
                </td>
            </tr>
            <tr>
                <td align="right" class="style5">
                    ket qua :&nbsp;&nbsp;
                </td>
                <td>
                    <asp:TextBox ID="txt_kq" runat="server" Width="202px"></asp:TextBox>
                </td>
            </tr>
        </table>
    
    </div>
    <div>
        <table align="center" class="style3">
            <tr>
                <td align="center" colspan="2" style="font-weight: bold; font-size: 30px">
                    Tinh Tuoi</td>
            </tr>
            <tr>
                <td align="right" class="style4">
                    nhap ho va ten :
                </td>
                <td>
                    <asp:TextBox ID="txt_ten" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="style4">
                    nhap nam sinh :
                </td>
                <td>
                    <asp:TextBox ID="txt_nams" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center" class="style2" colspan="2">
&nbsp;<asp:Button ID="btn_ttuoi" runat="server" onclick="btn_ttuoi_Click" Text="tinh tuoi" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btn_nhplai" runat="server" onclick="btn_nhplai_Click" 
                        Text="nhap lai" />
                </td>
            </tr>
            <tr>
                <td align="right" class="style4">
                    so tuoi hien tai :
                </td>
                <td>
                    <asp:TextBox ID="txt_kq1" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
